import java.lang.reflect.Array;
import java.util.Arrays;

public class Test {
    public static void transform(int [] array){
        for (int i = 0; i < array.length; i++) {
            array[i]=array[i]*2;
        }
    }
    public static int[] transform1(int [] array){
        int[]tem=new int[array.length];
        for (int i = 0; i < array.length; i++) {
            tem[i]=array[i]*2;

        }return(tem);
    }
    public static void main(String[] args) {
    int[] array={1,2,3};
    transform(array);
    int[] ret=transform1(array);
        System.out.println(Arrays.toString(array));
        System.out.println(Arrays.toString(ret));
    }
}
